package model

type SysRoleMenu struct {
	SysMenu
	MenuId string `json:"menuId" gorm:"comment:菜单ID"`
	RoleId string `json:"-" gorm:"comment:角色ID"`

	Children []SysRoleMenu `json:"children" gorm:"-"`
	Parameters []SysMenuParameter `json:"parameters" gorm:"foreignKey:SysMenuID;references:MenuId"`
}

/*func (s SysRoleMenu) TableName() string {
	return "role_menu"
}*/